/*******************************************************************************
* Copyright:   Copyright (c) 2007. Hisilicon Technologies, CO., LTD.
* Version:     V300R001B01
* Filename:    HFKey.h
* Description: This module is head file of keypad information
* History:
1.Created by SunShaojie on 2007/08/31
*******************************************************************************/

#ifndef __HFKEY_HPP__
#define __HFKEY_HPP__

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#include "kpdCntl.h"

#define HF_GPIO     GPIO_12_3

#define VOICE_RECOGNICE_PROC    TEXT("\\Program Files\\Cyberon\\VoiceCommander\\VoiceCommander.exe")

#define SIZEOFARRAY(a)  (sizeof(a) / sizeof(a[0]))

#define WM_HFKEY	(WM_USER + 101)

#define HFKEY_DOWN	1
#define HFKEY_UP	2
extern HWND g_hEarphoneTestDlgWnd;

extern BOOL    g_bTimeElased;

extern VOID HFKeyInit(PKEYPAD_HFKey pHfKey);

extern BOOL HFKeyThreadStart(PKEYPAD_DEVICE pDevice);

extern VOID HFKeyThreadEnd(PKEYPAD_DEVICE pDevice);


//------------------------------------------------------------------------------

#ifdef __cplusplus
}
#endif

#endif
